
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, max-age=0, must-revalidate"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="Fri, 01 Jan 1990 00:00:00 GMT"/>

    <link rel = "stylesheet" href="/front-end/style/bootstrap.min.css">
    <link rel = "stylesheet" href="/front-end/style/style.css">
    <meta charset="UTF-8">
    <script src = "/front-end/js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src = "/front-end/js/bootstrap.min.js" type="text/javascript"></script>
    <title>Вход</title>
</head>
<body>

<div class="category1">
<c:forEach var="category" items="${applicationScope.allCategories}">
    <p class="pcategory">${category.category_name}</p>
    <c:forEach var="film" items="${requestScope.allFilms}" >
        <c:if test="${film.category_id==category.category_id}">
            <div class="col-md-12 bt">
                <a href="/action.jsp?action=edit&id=${film.getFilm_id()}">
                    <c:out value="${film.getFilm_name()}" />
                </a>
            </div>
        </c:if>
    </c:forEach>
</c:forEach>
</div>

<div class="col-md-12 bt">

    <a class="btn-success" href="/action.jsp?action=add">
      добавить фильм
    </a>

</div>

</body>
</html>
